<!--
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2020-04-14 09:50:25
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-05-20 09:06:22
--> 
{include file="public/header" /}


<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>取消订单审核</h3>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <form method="get" name="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>订单编号：</dt>
                <dd><input type="text" value="{$Request.get.order_sn}" name="order_sn" id="order_sn" class="txt" style="width:100px;"></dd>
            </dl>
                       <dl>
                <dt>{$Think.lang.order_state}</dt>
                <dd>
                    <select name="order_state" class="querySelect">
                        <option value="">{$Think.lang.ds_please_choose}</option>
                        <option value="0" {if condition="$Request.param.order_state eq '0'"}selected{/if}>待审核</option>
                        <option value="1" {if condition="$Request.param.order_state eq '1'"}selected{/if}>审核通过</option>
                        <option value="2" {if condition="$Request.param.order_state eq '2'"}selected{/if}>审核未通过</option>
                    </select>
                </dd>
            </dl>
            <dl>
                <dt>订单类型</dt>
                <dd>
                    <select name="order_type" class="querySelect">
                        <option value="">{$Think.lang.ds_please_choose}</option>
                        <option value="1" {if condition="$Request.param.order_type eq '1'"}selected{/if}>安装</option>
                        <option value="2" {if condition="$Request.param.order_type eq '2'"}selected{/if}>维修</option>
                        <option value="3" {if condition="$Request.param.order_type eq '3'"}selected{/if}>移机</option>
                        <option value="4" {if condition="$Request.param.order_type eq '4'"}selected{/if}>保养</option>
                    </select>
                </dd>
            </dl>

            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                 {if $filtered}
                <a href="{:url('Casue/change')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
                 {/if}
            </div>
        </div>
    </form>

    <table class="ds-default-table">
        <thead>
        <tr class="thead">
            <th>序号</th>
            <th>订单编号</th>
            <th>订单类型</th>
            <th>买家账号</th>
            <th>服务人员姓名</th>
            <th>订单总额</th>
            <th>下单时间</th>
            <th>状态</th>
            <th class="align-center" style="width: 200px;">{$Think.lang.ds_handle}</th>
        </tr>
        </thead>
        <tbody>
        {notempty name="reason_list"}
        <?php $index = 1;foreach($reason_list as $val){ ?>
        <tr class="hover">
            <td class="w48 sort"><?php echo $index ?></td>
            <td class="w48 sort">{$val.order_sn}</td>
            <td>{$order_type[$val.order_type]}</td>
            <td>{$val.member_name}</td>
            <td>{$val.mechanic_name}</td>
            <td>{$val.order_amount}</td>
            <td>{$val.add_time|date="Y-m-d H:i:s",###}</td>
            <td>{$order_state[$val.status]}</td>
            <td class="w200 align-center">
                
                <a href="{:url('Service/show',['order_id'=>$val.order_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
                 <?php if($val['status'] ==0){ ?>
                <a href="javascript:dsLayerOpen('{:url('Casue/cancel_state',['order_id'=>$val.order_id,'cancel_id'=>$val.cancel_id])}','更换服务人员','1000px','780px')" class="dsui-btn-edit"><i class="iconfont"></i>审核</a>
               <?php } ?>
            </td>
        </tr>
        <?php $index++; } ?>
        {else /}
        <tr class="no_data">
            <td colspan="15">{$Think.lang.ds_no_record}</td>
        </tr>
        {/notempty}
        </tbody>

    </table>
    {$show_page}
</div>